
from qiniu import Auth, put_file, etag
AccessKey='K_X6PFH8hf8JTbcMRUSfDATGc39fv0t87anUhIDh'
SecretKey='-X_u-QseI7VddO_TCcvnOxJsT28Oj15jdYs3vwQU'


def qiniu_token():
    # 构建鉴权对象
    q = Auth(AccessKey, SecretKey)
    bucket ='newinfo-2109'
    token = q.upload_token(bucket)
    return token
